#ifndef _MAIL_H_
#define _MAIL_H_

#ifndef TRUE
#define TRUE 	1
#endif

#ifndef FALSE
#define FALSE 	0
#endif


typedef struct SMailBuf
{
	unsigned char drv;
	unsigned char act;
	unsigned char size;
	char * buf;
}
sMailBuf, *psMailBuf;

typedef enum
{
    MANAGE_DEV,
	SERIAL_DEV,
    DISP_DEV,
	RTC_DEV,
    KEYIN_DEV
} eMailDev;


void InitMail( void );
void TimeMail( void );
void MailTask( void );
int SendMailFifo(unsigned char drv, unsigned char act, unsigned char size, char * pbuf);
void MailSetToSleepMode(unsigned char sleep);

#endif //_RTC_H_
